/*
* Copyright 2025 NXP
* NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms.  If you do not agree to be bound by the applicable license
* terms, then you may not retain, install, activate or otherwise use the software.
*/

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"



volatile int Home_clock_hour_value = 12;
volatile int Home_clock_min_value = 30;
volatile int Home_clock_sec_value = 0;
void setup_scr_Home(lv_ui *ui)
{
    //Write codes Home
    ui->Home = lv_obj_create(NULL);
    lv_obj_set_size(ui->Home, 320, 240);
    lv_obj_set_scrollbar_mode(ui->Home, LV_SCROLLBAR_MODE_OFF);

    //Write style for Home, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->Home, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_src(ui->Home, &_sub_page_bak_RGB565A8_320x240, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_opa(ui->Home, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_recolor_opa(ui->Home, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_clock_panel
    ui->Home_clock_panel = lv_obj_create(ui->Home);
    lv_obj_set_pos(ui->Home_clock_panel, 13, 76);
    lv_obj_set_size(ui->Home_clock_panel, 160, 160);
    lv_obj_set_scrollbar_mode(ui->Home_clock_panel, LV_SCROLLBAR_MODE_OFF);

    //Write style for Home_clock_panel, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->Home_clock_panel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_clock_panel, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->Home_clock_panel, 181, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_clock_panel, lv_color_hex(0x154870), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_clock_panel, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->Home_clock_panel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->Home_clock_panel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->Home_clock_panel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->Home_clock_panel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_clock_panel, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_analog_clock
    static bool Home_clock_timer_enabled = false;
    static const char * Home_analog_clock_hour_ticks[] = {"12", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", NULL};
    ui->Home_analog_clock = lv_scale_create(ui->Home_clock_panel);
    lv_obj_set_pos(ui->Home_analog_clock, 22, 28);
    lv_obj_set_size(ui->Home_analog_clock, 120, 120);
    lv_scale_set_mode(ui->Home_analog_clock, LV_SCALE_MODE_ROUND_INNER);
    lv_scale_set_angle_range(ui->Home_analog_clock, 360U);
    lv_scale_set_range(ui->Home_analog_clock, 0U, 60U);
    lv_scale_set_rotation(ui->Home_analog_clock, 270U);
    lv_obj_set_style_radius(ui->Home_analog_clock, LV_RADIUS_CIRCLE, LV_PART_MAIN);
    lv_obj_set_style_clip_corner(ui->Home_analog_clock, true, LV_PART_MAIN);
    lv_obj_set_style_arc_width(ui->Home_analog_clock, 0, LV_PART_MAIN);

    lv_scale_set_total_tick_count(ui->Home_analog_clock, 61);

    lv_scale_set_major_tick_every(ui->Home_analog_clock, 5);
    lv_scale_set_text_src(ui->Home_analog_clock, Home_analog_clock_hour_ticks);
    lv_obj_update_layout(ui->Home_analog_clock);
    ui->Home_analog_clock_hour_needle = lv_line_create(ui->Home_analog_clock);
    lv_obj_set_style_line_width(ui->Home_analog_clock_hour_needle, 3, LV_PART_MAIN);
    lv_obj_set_style_line_color(ui->Home_analog_clock_hour_needle, lv_color_hex(0xbfa2f7), LV_PART_MAIN);
    lv_obj_set_style_line_rounded(ui->Home_analog_clock_hour_needle, true, LV_PART_MAIN);
    lv_scale_set_line_needle_value(ui->Home_analog_clock, ui->Home_analog_clock_hour_needle, 30, Home_clock_hour_value * 5);
    ui->Home_analog_clock_min_needle = lv_line_create(ui->Home_analog_clock);
    lv_obj_set_style_line_width(ui->Home_analog_clock_min_needle, 3, LV_PART_MAIN);
    lv_obj_set_style_line_color(ui->Home_analog_clock_min_needle, lv_color_hex(0xa2f7a5), LV_PART_MAIN);
    lv_obj_set_style_line_rounded(ui->Home_analog_clock_min_needle, true, LV_PART_MAIN);
    lv_scale_set_line_needle_value(ui->Home_analog_clock, ui->Home_analog_clock_min_needle, 47, Home_clock_min_value);
    ui->Home_analog_clock_sec_needle = lv_line_create(ui->Home_analog_clock);
    lv_obj_set_style_line_width(ui->Home_analog_clock_sec_needle, 2, LV_PART_MAIN);
    lv_obj_set_style_line_color(ui->Home_analog_clock_sec_needle, lv_color_hex(0xf7dfa2), LV_PART_MAIN);
    lv_obj_set_style_line_rounded(ui->Home_analog_clock_sec_needle, true, LV_PART_MAIN);
    lv_scale_set_line_needle_value(ui->Home_analog_clock, ui->Home_analog_clock_sec_needle, 55, Home_clock_sec_value);
    

    //Write style for Home_analog_clock, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->Home_analog_clock, 61, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_analog_clock, lv_color_hex(0xa2e1f7), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_analog_clock, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_analog_clock, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for Home_analog_clock, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->Home_analog_clock, lv_color_hex(0x000000), LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_analog_clock, &lv_font_montserratMedium_14, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_analog_clock, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_line_width(ui->Home_analog_clock, 2, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_line_color(ui->Home_analog_clock, lv_color_hex(0x000000), LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_line_opa(ui->Home_analog_clock, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_line_rounded(ui->Home_analog_clock, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_length(ui->Home_analog_clock, 10, LV_PART_INDICATOR|LV_STATE_DEFAULT);

    //Write style for Home_analog_clock, Part: LV_PART_ITEMS, State: LV_STATE_DEFAULT.
    lv_obj_set_style_line_width(ui->Home_analog_clock, 2, LV_PART_ITEMS|LV_STATE_DEFAULT);
    lv_obj_set_style_line_color(ui->Home_analog_clock, lv_color_hex(0x000000), LV_PART_ITEMS|LV_STATE_DEFAULT);
    lv_obj_set_style_line_opa(ui->Home_analog_clock, 255, LV_PART_ITEMS|LV_STATE_DEFAULT);
    lv_obj_set_style_line_rounded(ui->Home_analog_clock, true, LV_PART_ITEMS|LV_STATE_DEFAULT);
    lv_obj_set_style_length(ui->Home_analog_clock, 4, LV_PART_ITEMS|LV_STATE_DEFAULT);

    //Write codes Home_label_13
    ui->Home_label_13 = lv_label_create(ui->Home_clock_panel);
    lv_obj_set_pos(ui->Home_label_13, 1, 0);
    lv_obj_set_size(ui->Home_label_13, 156, 20);
    lv_label_set_text(ui->Home_label_13, "时钟");
    lv_label_set_long_mode(ui->Home_label_13, LV_LABEL_LONG_WRAP);

    //Write style for Home_label_13, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->Home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_label_13, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->Home_label_13, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_label_13, &lv_font_SourceHanSerifSC_Regular_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_label_13, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->Home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->Home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->Home_label_13, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->Home_label_13, 90, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_label_13, lv_color_hex(0x1e1e1e), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_label_13, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->Home_label_13, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->Home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->Home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->Home_label_13, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_label_13, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_cont_command
    ui->Home_cont_command = lv_obj_create(ui->Home);
    lv_obj_set_pos(ui->Home_cont_command, 179, 31);
    lv_obj_set_size(ui->Home_cont_command, 125, 90);
    lv_obj_set_scrollbar_mode(ui->Home_cont_command, LV_SCROLLBAR_MODE_OFF);

    //Write style for Home_cont_command, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->Home_cont_command, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_cont_command, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->Home_cont_command, 181, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_cont_command, lv_color_hex(0x154870), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_cont_command, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->Home_cont_command, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->Home_cont_command, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->Home_cont_command, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->Home_cont_command, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_cont_command, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_label_command
    ui->Home_label_command = lv_label_create(ui->Home_cont_command);
    lv_obj_set_pos(ui->Home_label_command, 0, 0);
    lv_obj_set_size(ui->Home_label_command, 123, 20);
    lv_label_set_text(ui->Home_label_command, "语音识别命令词");
    lv_label_set_long_mode(ui->Home_label_command, LV_LABEL_LONG_WRAP);

    //Write style for Home_label_command, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->Home_label_command, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_label_command, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->Home_label_command, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_label_command, &lv_font_SourceHanSerifSC_Regular_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_label_command, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->Home_label_command, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->Home_label_command, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->Home_label_command, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->Home_label_command, 90, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_label_command, lv_color_hex(0x1e1e1e), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_label_command, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->Home_label_command, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->Home_label_command, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->Home_label_command, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->Home_label_command, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_label_command, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_cont_light
    ui->Home_cont_light = lv_obj_create(ui->Home);
    lv_obj_set_pos(ui->Home_cont_light, 179, 133);
    lv_obj_set_size(ui->Home_cont_light, 124, 101);
    lv_obj_set_scrollbar_mode(ui->Home_cont_light, LV_SCROLLBAR_MODE_OFF);

    //Write style for Home_cont_light, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->Home_cont_light, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_cont_light, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->Home_cont_light, 181, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_cont_light, lv_color_hex(0x154870), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_cont_light, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->Home_cont_light, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->Home_cont_light, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->Home_cont_light, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->Home_cont_light, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_cont_light, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_led_slider
    ui->Home_led_slider = lv_slider_create(ui->Home_cont_light);
    lv_obj_set_pos(ui->Home_led_slider, 34, 77);
    lv_obj_set_size(ui->Home_led_slider, 65, 3);
    lv_slider_set_range(ui->Home_led_slider, 0, 100);
    lv_slider_set_mode(ui->Home_led_slider, LV_SLIDER_MODE_NORMAL);
    lv_slider_set_value(ui->Home_led_slider, 0, LV_ANIM_OFF);

    //Write style for Home_led_slider, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->Home_led_slider, 60, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_led_slider, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_led_slider, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_led_slider, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_outline_width(ui->Home_led_slider, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_led_slider, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for Home_led_slider, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->Home_led_slider, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_led_slider, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_led_slider, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_led_slider, 8, LV_PART_INDICATOR|LV_STATE_DEFAULT);

    //Write style for Home_led_slider, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->Home_led_slider, 255, LV_PART_KNOB|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_led_slider, lv_color_hex(0x2195f6), LV_PART_KNOB|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_led_slider, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_led_slider, 8, LV_PART_KNOB|LV_STATE_DEFAULT);

    //Write codes Home_rgb_btn_1
    ui->Home_rgb_btn_1 = lv_imagebutton_create(ui->Home_cont_light);
    lv_obj_set_pos(ui->Home_rgb_btn_1, 10, 28);
    lv_obj_set_size(ui->Home_rgb_btn_1, 25, 25);
    lv_obj_add_flag(ui->Home_rgb_btn_1, LV_OBJ_FLAG_CHECKABLE);
    lv_imagebutton_set_src(ui->Home_rgb_btn_1, LV_IMAGEBUTTON_STATE_RELEASED, &_led_RGB565A8_25x25, NULL, NULL);
    lv_imagebutton_set_src(ui->Home_rgb_btn_1, LV_IMAGEBUTTON_STATE_PRESSED, &_led_RGB565A8_25x25, NULL, NULL);
    lv_imagebutton_set_src(ui->Home_rgb_btn_1, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_led_RGB565A8_25x25, NULL, NULL);
    lv_imagebutton_set_src(ui->Home_rgb_btn_1, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_led_RGB565A8_25x25, NULL, NULL);
    ui->Home_rgb_btn_1_label = lv_label_create(ui->Home_rgb_btn_1);
    lv_label_set_text(ui->Home_rgb_btn_1_label, "");
    lv_label_set_long_mode(ui->Home_rgb_btn_1_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->Home_rgb_btn_1_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->Home_rgb_btn_1, 0, LV_STATE_DEFAULT);

    //Write style for Home_rgb_btn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->Home_rgb_btn_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_rgb_btn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_rgb_btn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->Home_rgb_btn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_rgb_btn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for Home_rgb_btn_1, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
    lv_obj_set_style_image_recolor_opa(ui->Home_rgb_btn_1, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_image_opa(ui->Home_rgb_btn_1, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->Home_rgb_btn_1, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_font(ui->Home_rgb_btn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_opa(ui->Home_rgb_btn_1, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_width(ui->Home_rgb_btn_1, 0, LV_PART_MAIN|LV_STATE_PRESSED);

    //Write style for Home_rgb_btn_1, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
    lv_obj_set_style_image_recolor_opa(ui->Home_rgb_btn_1, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_image_opa(ui->Home_rgb_btn_1, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->Home_rgb_btn_1, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_font(ui->Home_rgb_btn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_opa(ui->Home_rgb_btn_1, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_width(ui->Home_rgb_btn_1, 0, LV_PART_MAIN|LV_STATE_CHECKED);

    //Write style for Home_rgb_btn_1, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
    lv_obj_set_style_image_recolor_opa(ui->Home_rgb_btn_1, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
    lv_obj_set_style_image_opa(ui->Home_rgb_btn_1, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);

    //Write codes Home_label_8
    ui->Home_label_8 = lv_label_create(ui->Home_cont_light);
    lv_obj_set_pos(ui->Home_label_8, 0, 0);
    lv_obj_set_size(ui->Home_label_8, 120, 20);
    lv_label_set_text(ui->Home_label_8, "灯光开关");
    lv_label_set_long_mode(ui->Home_label_8, LV_LABEL_LONG_WRAP);

    //Write style for Home_label_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->Home_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_label_8, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->Home_label_8, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_label_8, &lv_font_SourceHanSerifSC_Regular_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_label_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->Home_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->Home_label_8, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->Home_label_8, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->Home_label_8, 90, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_label_8, lv_color_hex(0x1e1e1e), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_label_8, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->Home_label_8, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->Home_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->Home_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->Home_label_8, 10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_rgb_btn_3
    ui->Home_rgb_btn_3 = lv_imagebutton_create(ui->Home_cont_light);
    lv_obj_set_pos(ui->Home_rgb_btn_3, 80, 28);
    lv_obj_set_size(ui->Home_rgb_btn_3, 25, 25);
    lv_obj_add_flag(ui->Home_rgb_btn_3, LV_OBJ_FLAG_CHECKABLE);
    lv_imagebutton_set_src(ui->Home_rgb_btn_3, LV_IMAGEBUTTON_STATE_RELEASED, &_led_RGB565A8_25x25, NULL, NULL);
    lv_imagebutton_set_src(ui->Home_rgb_btn_3, LV_IMAGEBUTTON_STATE_PRESSED, &_led_RGB565A8_25x25, NULL, NULL);
    lv_imagebutton_set_src(ui->Home_rgb_btn_3, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_led_RGB565A8_25x25, NULL, NULL);
    lv_imagebutton_set_src(ui->Home_rgb_btn_3, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_led_RGB565A8_25x25, NULL, NULL);
    ui->Home_rgb_btn_3_label = lv_label_create(ui->Home_rgb_btn_3);
    lv_label_set_text(ui->Home_rgb_btn_3_label, "");
    lv_label_set_long_mode(ui->Home_rgb_btn_3_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->Home_rgb_btn_3_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->Home_rgb_btn_3, 0, LV_STATE_DEFAULT);

    //Write style for Home_rgb_btn_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->Home_rgb_btn_3, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_rgb_btn_3, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_rgb_btn_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->Home_rgb_btn_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_rgb_btn_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for Home_rgb_btn_3, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
    lv_obj_set_style_image_recolor_opa(ui->Home_rgb_btn_3, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_image_opa(ui->Home_rgb_btn_3, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->Home_rgb_btn_3, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_font(ui->Home_rgb_btn_3, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_opa(ui->Home_rgb_btn_3, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_width(ui->Home_rgb_btn_3, 0, LV_PART_MAIN|LV_STATE_PRESSED);

    //Write style for Home_rgb_btn_3, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
    lv_obj_set_style_image_recolor_opa(ui->Home_rgb_btn_3, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_image_opa(ui->Home_rgb_btn_3, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->Home_rgb_btn_3, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_font(ui->Home_rgb_btn_3, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_opa(ui->Home_rgb_btn_3, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_width(ui->Home_rgb_btn_3, 0, LV_PART_MAIN|LV_STATE_CHECKED);

    //Write style for Home_rgb_btn_3, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
    lv_obj_set_style_image_recolor_opa(ui->Home_rgb_btn_3, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
    lv_obj_set_style_image_opa(ui->Home_rgb_btn_3, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);

    //Write codes Home_rgb_btn_2
    ui->Home_rgb_btn_2 = lv_imagebutton_create(ui->Home_cont_light);
    lv_obj_set_pos(ui->Home_rgb_btn_2, 45, 28);
    lv_obj_set_size(ui->Home_rgb_btn_2, 25, 25);
    lv_obj_add_flag(ui->Home_rgb_btn_2, LV_OBJ_FLAG_CHECKABLE);
    lv_imagebutton_set_src(ui->Home_rgb_btn_2, LV_IMAGEBUTTON_STATE_RELEASED, &_led_RGB565A8_25x25, NULL, NULL);
    lv_imagebutton_set_src(ui->Home_rgb_btn_2, LV_IMAGEBUTTON_STATE_PRESSED, &_led_RGB565A8_25x25, NULL, NULL);
    lv_imagebutton_set_src(ui->Home_rgb_btn_2, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_led_RGB565A8_25x25, NULL, NULL);
    lv_imagebutton_set_src(ui->Home_rgb_btn_2, LV_IMAGEBUTTON_STATE_CHECKED_PRESSED, &_led_RGB565A8_25x25, NULL, NULL);
    ui->Home_rgb_btn_2_label = lv_label_create(ui->Home_rgb_btn_2);
    lv_label_set_text(ui->Home_rgb_btn_2_label, "");
    lv_label_set_long_mode(ui->Home_rgb_btn_2_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->Home_rgb_btn_2_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->Home_rgb_btn_2, 0, LV_STATE_DEFAULT);

    //Write style for Home_rgb_btn_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->Home_rgb_btn_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_rgb_btn_2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_rgb_btn_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->Home_rgb_btn_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_rgb_btn_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for Home_rgb_btn_2, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
    lv_obj_set_style_image_recolor_opa(ui->Home_rgb_btn_2, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_image_opa(ui->Home_rgb_btn_2, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->Home_rgb_btn_2, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_font(ui->Home_rgb_btn_2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_opa(ui->Home_rgb_btn_2, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_width(ui->Home_rgb_btn_2, 0, LV_PART_MAIN|LV_STATE_PRESSED);

    //Write style for Home_rgb_btn_2, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
    lv_obj_set_style_image_recolor_opa(ui->Home_rgb_btn_2, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_image_opa(ui->Home_rgb_btn_2, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->Home_rgb_btn_2, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_font(ui->Home_rgb_btn_2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_opa(ui->Home_rgb_btn_2, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_width(ui->Home_rgb_btn_2, 0, LV_PART_MAIN|LV_STATE_CHECKED);

    //Write style for Home_rgb_btn_2, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
    lv_obj_set_style_image_recolor_opa(ui->Home_rgb_btn_2, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
    lv_obj_set_style_image_opa(ui->Home_rgb_btn_2, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);

    //Write codes Home_datetext_date
    ui->Home_datetext_date = lv_label_create(ui->Home);
    lv_obj_set_pos(ui->Home_datetext_date, 165, 3);
    lv_obj_set_size(ui->Home_datetext_date, 69, 18);
    lv_label_set_text(ui->Home_datetext_date, "2025/09/03");
    lv_obj_set_style_text_align(ui->Home_datetext_date, LV_TEXT_ALIGN_CENTER, 0);
    lv_obj_add_flag(ui->Home_datetext_date, LV_OBJ_FLAG_CLICKABLE);
    lv_obj_add_event_cb(ui->Home_datetext_date, Home_datetext_date_event_handler, LV_EVENT_ALL, NULL);

    //Write style for Home_datetext_date, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->Home_datetext_date, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_datetext_date, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_datetext_date, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->Home_datetext_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->Home_datetext_date, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->Home_datetext_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->Home_datetext_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_datetext_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->Home_datetext_date, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->Home_datetext_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->Home_datetext_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_datetext_date, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_digital_clock_time
    ui->Home_digital_clock_time = lv_label_create(ui->Home);
    lv_obj_set_pos(ui->Home_digital_clock_time, 238, 3);
    lv_obj_set_size(ui->Home_digital_clock_time, 70, 15);
    lv_label_set_text(ui->Home_digital_clock_time, "12:00:00 PM");

    // 创建时钟
    if (!Home_clock_timer_enabled) {
        lv_timer_create(Home_clock_timer, 1000, NULL);
        Home_clock_timer_enabled = true;
    }

    //Write style for Home_digital_clock_time, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_radius(ui->Home_digital_clock_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->Home_digital_clock_time, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_digital_clock_time, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_digital_clock_time, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->Home_digital_clock_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->Home_digital_clock_time, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->Home_digital_clock_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->Home_digital_clock_time, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->Home_digital_clock_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->Home_digital_clock_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->Home_digital_clock_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_digital_clock_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_img_logo
    ui->Home_img_logo = lv_image_create(ui->Home);
    lv_obj_set_pos(ui->Home_img_logo, 13, 3);
    lv_obj_set_size(ui->Home_img_logo, 25, 15);
    lv_obj_add_flag(ui->Home_img_logo, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->Home_img_logo, &_logo_RGB565A8_25x15);
    lv_image_set_pivot(ui->Home_img_logo, 13,7);
    lv_image_set_rotation(ui->Home_img_logo, 0);

    //Write style for Home_img_logo, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->Home_img_logo, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->Home_img_logo, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_label_fenwei
    ui->Home_label_fenwei = lv_label_create(ui->Home);
    lv_obj_set_pos(ui->Home_label_fenwei, 183, 57);
    lv_obj_set_size(ui->Home_label_fenwei, 116, 13);
    lv_label_set_text(ui->Home_label_fenwei, "氛围模式");
    lv_label_set_long_mode(ui->Home_label_fenwei, LV_LABEL_LONG_WRAP);

    //Write style for Home_label_fenwei, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->Home_label_fenwei, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_label_fenwei, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->Home_label_fenwei, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_label_fenwei, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_label_fenwei, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->Home_label_fenwei, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->Home_label_fenwei, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->Home_label_fenwei, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->Home_label_fenwei, 51, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_label_fenwei, lv_color_hex(0x0032ff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_label_fenwei, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->Home_label_fenwei, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->Home_label_fenwei, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->Home_label_fenwei, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->Home_label_fenwei, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_label_fenwei, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_label_up
    ui->Home_label_up = lv_label_create(ui->Home);
    lv_obj_set_pos(ui->Home_label_up, 183, 73);
    lv_obj_set_size(ui->Home_label_up, 116, 15);
    lv_label_set_text(ui->Home_label_up, "调亮灯光");
    lv_label_set_long_mode(ui->Home_label_up, LV_LABEL_LONG_WRAP);

    //Write style for Home_label_up, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->Home_label_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_label_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->Home_label_up, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_label_up, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_label_up, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->Home_label_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->Home_label_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->Home_label_up, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->Home_label_up, 51, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_label_up, lv_color_hex(0x0032ff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_label_up, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->Home_label_up, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->Home_label_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->Home_label_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->Home_label_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_label_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_label_down
    ui->Home_label_down = lv_label_create(ui->Home);
    lv_obj_set_pos(ui->Home_label_down, 183, 91);
    lv_obj_set_size(ui->Home_label_down, 116, 15);
    lv_label_set_text(ui->Home_label_down, "调暗灯光");
    lv_label_set_long_mode(ui->Home_label_down, LV_LABEL_LONG_WRAP);

    //Write style for Home_label_down, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->Home_label_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_label_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->Home_label_down, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_label_down, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_label_down, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->Home_label_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->Home_label_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->Home_label_down, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->Home_label_down, 51, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_label_down, lv_color_hex(0x0032ff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_label_down, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->Home_label_down, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->Home_label_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->Home_label_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->Home_label_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_label_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_label_off
    ui->Home_label_off = lv_label_create(ui->Home);
    lv_obj_set_pos(ui->Home_label_off, 184, 108);
    lv_obj_set_size(ui->Home_label_off, 115, 15);
    lv_label_set_text(ui->Home_label_off, "关闭灯光");
    lv_label_set_long_mode(ui->Home_label_off, LV_LABEL_LONG_WRAP);

    //Write style for Home_label_off, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->Home_label_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_label_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->Home_label_off, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_label_off, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_label_off, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->Home_label_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->Home_label_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->Home_label_off, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->Home_label_off, 51, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_label_off, lv_color_hex(0x0032ff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_label_off, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->Home_label_off, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->Home_label_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->Home_label_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->Home_label_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_label_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_label_tips
    ui->Home_label_tips = lv_label_create(ui->Home);
    lv_obj_set_pos(ui->Home_label_tips, 13, 31);
    lv_obj_set_size(ui->Home_label_tips, 159, 17);
    lv_label_set_text(ui->Home_label_tips, "请叫你好小鑫唤醒我");
    lv_label_set_long_mode(ui->Home_label_tips, LV_LABEL_LONG_WRAP);

    //Write style for Home_label_tips, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->Home_label_tips, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_label_tips, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->Home_label_tips, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_label_tips, &lv_font_SourceHanSerifSC_Regular_11, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_label_tips, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->Home_label_tips, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->Home_label_tips, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->Home_label_tips, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->Home_label_tips, 90, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_label_tips, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_label_tips, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->Home_label_tips, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->Home_label_tips, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->Home_label_tips, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->Home_label_tips, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_label_tips, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_label_net
    ui->Home_label_net = lv_label_create(ui->Home);
    lv_obj_set_pos(ui->Home_label_net, 13, 54);
    lv_obj_set_size(ui->Home_label_net, 159, 17);
    lv_label_set_text(ui->Home_label_net, "AP配网地址：192.168.100.1");
    lv_label_set_long_mode(ui->Home_label_net, LV_LABEL_LONG_WRAP);

    //Write style for Home_label_net, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->Home_label_net, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->Home_label_net, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->Home_label_net, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->Home_label_net, &lv_font_SourceHanSerifSC_Regular_10, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->Home_label_net, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->Home_label_net, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->Home_label_net, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->Home_label_net, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->Home_label_net, 90, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->Home_label_net, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->Home_label_net, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->Home_label_net, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->Home_label_net, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->Home_label_net, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->Home_label_net, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->Home_label_net, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes Home_img_wifi
    ui->Home_img_wifi = lv_image_create(ui->Home);
    lv_obj_set_pos(ui->Home_img_wifi, 43, -1);
    lv_obj_set_size(ui->Home_img_wifi, 25, 25);
    lv_obj_add_flag(ui->Home_img_wifi, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->Home_img_wifi, &_wifi_RGB565A8_25x25);
    lv_image_set_pivot(ui->Home_img_wifi, 12,12);
    lv_image_set_rotation(ui->Home_img_wifi, 0);

    //Write style for Home_img_wifi, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->Home_img_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->Home_img_wifi, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //The custom code of Home.


    //Update current screen layout.
    lv_obj_update_layout(ui->Home);

    //Init events for screen.
    events_init_Home(ui);
}
